import { createApp } from 'vue'
import App from './App.vue'
import './style.css'
import { router } from './router'
import ElementPlus from 'element-plus/es/index'
import 'element-plus/dist/index.css'
import formCreate from '@form-create/element-ui'
//引入图片懒加载插件
import Lazyload from "vue3-lazyload";

String.prototype.replaceAll  = function(s1,s2){
    return this.replace(new RegExp(s1,"gm"),s2);
}
// getToken()
const app = createApp(App)
//注册插件
app.use(Lazyload, {
    loading: "",//可以指定加载中的图像
    error: "",//可以指定加载失败的图像
});
app.use(router)
app.use(ElementPlus)
app.use(formCreate)
app.mount('#app')
